package com.zc.im.common.exception;

import com.zc.im.common.constant.enums.ResultEnum;
import lombok.Getter;

/**
 * Project：im
 * Date：2022/4/14
 * Time：10:00
 * Description：自定义异常
 *
 * @author Challen.Zhang
 * @version 1.0
 */
@Getter
public class CustomException extends RuntimeException {

    private ResultEnum resultEnum;

    private String message;

    public CustomException(ResultEnum resultEnum) {
        this.resultEnum = resultEnum;
    }

    public CustomException(ResultEnum resultEnum, String message) {
        this(resultEnum);
        this.message = message;
    }

}
